import request from "@/util/request.js"

export function insertLinkageToDevice(param) {
	return request({
		url: '/iot/device/linkage/insertToDevice',
		method: 'post',
		data: param
	});
}

export function updateLinkageToDevice(param) {
	return request({
		url: '/iot/device/linkage/updateToDevice',
		method: 'post',
		data: param
	});
}

export function deleteLinkageToDevice(param) {
	return request({
		url: '/iot/device/linkage/deleteToDevice',
		method: 'post',
		data: param
	});
}

export function deleteLinkageByDeviceToDevice(param) {
	return request({
		url: '/iot/device/linkage/deleteByDeviceToDevice',
		method: 'post',
		data: param
	});
}

export function insertLinkageToServer(param) {
	return request({
		url: '/iot/device/linkage/insertToServer',
		method: 'post',
		data: param
	});
}

export function updateLinkageToServer(param) {
	return request({
		url: '/iot/device/linkage/updateToServer',
		method: 'post',
		data: param
	});
}

export function deleteLinkageToServer(param) {
	return request({
		url: '/iot/device/linkage/deleteToServer',
		method: 'post',
		data: param
	});
}

export function deleteLinkageByDeviceToServer(param) {
	return request({
		url: '/iot/device/linkage/deleteByDeviceToServer',
		method: 'post',
		data: param
	});
}

export function listLinkage(param) {
	return request({
		url: '/iot/device/linkage/list',
		method: 'post',
		data: param
	});
}


export function updateLinkage(param) {
	return request({
		url: '/iot/device/linkage/update',
		method: 'post',
		data: param
	});
}

export function getLinkage(param) {
	return request({
		url: '/iot/device/linkage/get',
		method: 'post',
		data: param
	});
}
